Transcription: The reason I show this trick is because debugging this stuff isn't exactly simple. Fortunately, there are some new tools like Visual InterDev which allow for client-side debugging and let you do things like interrogate the values of variables, which is why I do this trick a lot. Most of the time if I'm going to write content out to the document object, I'll assign it into a variable, a string variable first. The reason being is as I step through the code, I can see exactly what's going to be written out and I can make sure that it is what I expect. This is especially true when you start doing ...